from rest_framework import serializers
from catalogue.models import Foods, Catalogue

class CatalogueSerializer(serializers.ModelSerializer):
    class Meta:
        model = Catalogue
        fields = [
            'id',
            'tags',
        ]

class FoodsSerializer(serializers.ModelSerializer):
    class Meta:
        model = Foods
        fields = [
            'id',
            'name',
            'describe',
            'sales',
            'price',
            'images',
        ]